package com.lijian.dubbo.consumer.main;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lijian.dubbo.consumer.action.ExecuteUserAction;

public class ExecuteMainClass {
	@SuppressWarnings("resource")
	public static void main(String[] args){
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        context.start();
        
        ExecuteUserAction userAction = context.getBean(ExecuteUserAction.class);
		String a = userAction.say("user ");
		System.out.println(a);
		
		try {
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		} // 按任意键退出
	}
}
